import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class people1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class people1 extends Actor
{
    /**
     * Act - do whatever the people1 wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        move(3);
        keycontrol();
        turnTowards(6,7);
    }  
    
    public void keycontrol(){
        if(Greenfoot.isKeyDown("left")){
          turn(-15);
        }
        if(Greenfoot.isKeyDown("right")){
          turn(15);
        }
    }
    
}
